/**
 * Game State
 */
var GameState = {
	theState : new GameState_Init(),
	setState : function(state) {
		this.theState.onLeave();
		this.theState = state;
		this.theState.onEnter();
	},

	onMenu       : function() {},
	onAction     : function() {},
	onMessages   : function() {},
	onEnd        : function() {},
	onNewGame    : function() {},
	onStatistics : function() {},
	onResume     : function() {},
	onZoomIn     : function() {},
	onZoomOut    : function() {},
}

function GameState_Init() {
	this.onEnter = function() {
		
	}
	this.onLeave = function() {
		
	}
}

function GameState_Main() {
	this.onEnter   = function() {
		
	}
	this.onLeave   = function() {
		
	}
}

function GameState_Messages() {
	this.onEnter   = function() {
		$("#messages-menu").show();
	}
	this.onLeave   = function() {
		$("#messages-menu").hide();
	}
}

function GameState_Play() {
	this.onEnter   = function() {
		
	}
	this.onLeave   = function() {
		
	}
}

function GameState_Win() {
	this.onEnter   = function() {
		
	}
	this.onLeave   = function() {
		
	}
}

function GameState_Loose() {
	this.onEnter   = function() {
		
	}
	this.onLeave   = function() {
		
	}
}
